<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>
<?php echo $header;?>
<script type="text/javascript">
$(document).ready(function(){
	// 上传附件
	$('#b_upload').click(function(){
		$.dialog.open('<?php echo base_url('upload/show/file/path');?>',{title:'<?php echo lang('com_title_upload_file');?>',width:400,height:100,lock:true});
	});
});
</script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="table_top_left" width="17" valign="top"></td>
		<td class="table_top_middle" valign="top">
			<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				<tr>
					<td height="31" align="left"><div class="titlebt"><?php echo $page_label;?></div></td>
				</tr>
			</table>
		</td>
		<td class="table_top_right" width="16" valign="top"></td>
	</tr>
	<tr>
		<td class="table_left_side" height="71" valign="middle"></td>
		<td valign="top" bgcolor="#F7F8F9">
		<table width="100%" height="138" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td valign="top">
				<table width="98%" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr>
						<td align="left" class="left_txt"><?php echo $nav_label,$title?></td>
					</tr>
					<tr>
						<td>
						<form id="f_article" name="f_article" method="post" action="<?php echo base_url('article/add_action');?>">
							<table width="100%" class="list" cellpadding="0" style="border-collapse: collapse" border="1" bordercolor="#BFC4CA">
								<tr>
									<th colspan="2" height="25" bgcolor="#EEF2FB"><?php echo $title?></th>
								</tr>
								<tr>
									<td width="18%" height="25" align="right"><?php echo lang('article_title');?></td>
									<td width="83%" height="25" align="left"><input name="title"
										type="text" id="title" size="60" maxlength="50" />
										<span class="tip">*<?php printf(lang('com_tip_word_limit'), 50);?></span></td>
								</tr>
								<tr>
									<td width="18%" align="right" height="25"><?php echo lang('com_column_name');?></td>
									<td width="83%" height="25" align="left">
										<select name="classid" id="classid">
										<option value="0" selected="selected"><?php echo lang('com_column_choise');?></option>
										<?php echo format_column_as_select($class);?>
										</select>
										<span class="tip">*<?php echo lang('com_tip_select_sub_column');?></span></td>
								</tr>
								<tr>
									<td align="right" height="25"><?php echo lang('article_author');?></td>
									<td height="25" align="left">
									<input name="author" type="text" id="author" size="30" maxlength="20" />
									<span class="tip">*<?php printf(lang('com_tip_word_limit'), 20);?></span></td>
								</tr>
								<tr>
									<td align="right" height="25"><?php echo lang('article_editor');?></td>
									<td height="25" align="left">
									<input name="editor" type="text" id="editor" size="30" maxlength="20" />
									<span class="tip">*<?php printf(lang('com_tip_word_limit'), 20);?></span></td>
								</tr>
								<tr>
									<td align="right" height="25"><?php echo lang('article_source');?></td>
									<td height="25" align="left">
									<input name="source" type="text" id="source" size="30" maxlength="15" />
									<span class="tip">*<?php printf(lang('com_tip_word_limit'), 15);?></span></td>
								</tr>
								<tr>
									<td width="18%" align="right" height="25"><?php echo lang('article_content');?></td>
									<td width="83%" height="25" align="left">								
									<textarea name="content" cols="100" rows="20" id="content"></textarea></td>
								</tr>
								<tr>
									<td align="right"><?php echo lang('com_title_upload_file');?></td>
									<td align="left">
									<input name="path" type="text" id="path" size="50" maxlength="255" /> 
									<input name="b_upload" type="button" class="button" id="b_upload" value="<?php echo lang('com_button_upload');?>" />
									<span class="tip"><?php echo lang('com_upload_file_tip');?></span></td>
								</tr>
								<tr>
									<td align="right"><?php echo lang('com_keyword');?></td>
									<td align="left">
									<input name="keyword" type="text" id="keyword" size="40" maxlength="30" />
									<span class="tip"><?php printf(lang('com_tip_keyword_limit'), 30);?></span></td>
								</tr>
								<tr>
									<td align="right"><?php echo lang('com_releasename');?></td>
									<td align="left">
									<input name="releasename" type="text" id="releasename" readonly="readonly" value="<?php echo $loginname?>" size="20" maxlength="15" />
									<span class="tip">*<?php printf(lang('com_tip_word_limit'), 20);?></span></td>
								</tr>
								<tr>
									<td align="right"><?php echo lang('com_remark');?></td>
									<td align="left">
									<input name="remark" type="text" id="remark" size="30" maxlength="20" />
									<span class="tip"><?php printf(lang('com_tip_admin_visible'), 20);?></span></td>
								</tr>
								<tr>
									<td colspan="2" height="25">
									<input name="s_article_add" type="submit" class="button" id="s_article_add" value="<?php echo lang('com_button_submit');?>" />
								<input name="Submit2" type="reset" class="button" value="<?php echo lang('com_button_reset');?>" />
									</td>
								</tr>
							</table>
						</form>
						</td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	<td class="table_right_side"></td>
	</tr>
	<tr>
		<td valign="middle" class="table_bottom_left">&nbsp;</td>
		<td height="17" valign="top" class="table_bottom_middle">&nbsp;</td>
		<td class="table_bottom_right">&nbsp;</td>
	</tr>
</table>
</body>
</html>
